<template>
	<view>
		<view class="banner"></view>
		<!-- 账户信息 -->
		<view class="account">
			<view class="name">你好 . 老王</view>
			<view class="desc">江门起源，灵感寻味</view>
			<!-- 卡包 -->
			<view class="card">
				<view class="top">
					<text class="number-name">Go 会员</text>
					<text class="number-desc">成为星球会员 双倍积分</text>
				</view>
				<view class="grade">
					<text class="grade-1">Lv1</text>
				</view>
				<view class="middle"></view>
				<view class="card-list">
					<view class="card-list-item">
						<image src="https://placehold.co/50x50"></image>
						<text class="num">22</text>
						<text class="title">积分商城</text>
					</view>
					<view class="card-list-item">
						<image src="https://placehold.co/50x50"></image>
						<text class="num">22</text>
						<text class="title">积分商城</text>
					</view>
					<view class="card-list-item">
						<image src="https://placehold.co/50x50"></image>
						<text class="num">22</text>
						<text class="title">积分商城</text>
					</view>
				</view>
			</view>
		</view>
		<!-- 广告 -->
		<view class="advs">
			<image src="https://placehold.co/400x170"></image>
			<image src="https://placehold.co/400x170"></image>
			<image src="https://placehold.co/400x170"></image>
		</view>
		<!-- 基本信息 -->
		<uni-list>
			<uni-list-item showArrow title="会员码" to="/pages/code/index"/>
			<uni-list-item showArrow title="积分商城" rightText="兑换各种商品！！！" link="switchTab"  to='/pages/shop/shop' />
			<uni-list-item showArrow title="地址管理" to="/pages/addr/index"/>
			<uni-list-item showArrow title="个人中心"  to="/pages/member/detail"/>
		</uni-list>
		<view style="height: 50rpx;"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
		}
	}
</script>
<style>
	page {
		background-color: #f6f6f6;
	}
</style>

<style scoped lang="less">
	.advs {
		padding: 0rpx 20rpx 20rpx 20rpx;
		text-align: center;

		image {
			width: 100%;
			display: block;
			height: 300rpx;
			margin: 10rpx 0px;
		}
	}

	.account {
		padding: 20rpx;

		.card {
			margin-top: 20rpx;
			background-color: #fff;
			border-radius: 10rpx;
			padding: 40rpx 20rpx;

			.card-list {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.card-list-item {
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					width: 200rpx;

					image {
						width: 100rpx;
						height: 100rpx;
					}

					.num {
						font-size: 18px;
						font-weight: 600;
						color: #797979;
						text-align: center;
						margin: 15rpx 0rpx;
					}

					.title {
						font-size: 12px;
						font-weight: 600;
						color: #797979;
						text-align: center;
					}
				}
			}

			.middle {
				margin: 20rpx 0rpx;
				width: 100%;
				height: 1px;
				background-color: #f2f2f2;
			}

			.grade {
				margin-top: 10rpx;
				line-height: 18px;

				.grade-1 {
					border: 1px #aba7a4 solid;
					font-size: 12px;
					text-align: center;
					padding: 0px 20rpx;

					border-radius: 10rpx;
				}
			}

			.top {
				.number-name {
					font-size: 18px;
					font-weight: 600;
					color: black;
				}

				.number-desc {
					margin-left: 10rpx;
					border-radius: 30rpx;
					background-color: #f2f2f2;
					color: #777777;
					font-size: 12px;
					padding: 10rpx;
				}

			}
		}

		.name {
			font-size: 18px;
			font-weight: 600;
			color: #dba871;
		}

		.desc {
			margin-top: 10rpx;
			font-size: 12px;
			font-weight: 600;
			color: #dba871;
		}
	}

	.banner {
		background-image: url(https://placehold.co/300x250);
		background-repeat: no-repeat;
		background-size: cover;
		height: 600rpx;
	}
</style>